import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'antd';
import './index.scss';

/**
 * 组件：返回按钮
 */
const ReturnButton = (props) => {
  const { clickHandle } = props;
  return (
    <Button
      className="return-btn"
      onClick={clickHandle}
    >
      返回
    </Button>
  );
};

ReturnButton.propTypes = {
  clickHandle: PropTypes.func.isRequired,
};

export default ReturnButton;
